﻿using System.ComponentModel;

namespace XXX.Workflow
{
	public class WorkItem1Context : INotifyPropertyChanged
	{
		public event PropertyChangedEventHandler PropertyChanged;

		private long _ItemCount;
		public long ItemCount
		{
			get
			{
				return _ItemCount;
			}
			set
			{
				_ItemCount = value;
				OnPropertyChanged("ItemCount");
			}
		}
		private string _UserName;
		public string UserName
		{
			get
			{
				return _UserName;
			}
			set
			{
				_UserName = value;
				OnPropertyChanged("UserName");
			}
		}
		private string _Password;
		public string Password
		{
			get
			{
				return _Password;
			}
			set
			{
				_Password = value;
				OnPropertyChanged("Password");
			}
		}

		#region OnPropertyChanged

		protected void OnPropertyChanged(string propertyName)
		{
			OnPropertyChanged(new PropertyChangedEventArgs(propertyName));
		}
		protected void OnPropertyChanged(PropertyChangedEventArgs args)
		{
			if (this.PropertyChanged != null)
				this.PropertyChanged.Invoke(this, args);
		}

		#endregion
	}
}
